package com.dove.common;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@Component
@ConfigurationProperties(prefix = "my") // 用来指定properties配置文件中的key前缀
@PropertySource("classpath:application.properties") // 配置文件所在位置
public class MyProperties {

	private String dove;

	public String getDove() {
		return dove;
	}

	public void setDove(String dove) {
		this.dove = dove;
	}

	/**
	 * 支付宝 网关
	 */
	private String url;

	/**
	 * 本地通知地址
	 */
	private String notifyUrl;

	/**
	 * 商户id
	 */
	private String pid;

	/**
	 * 小程序id
	 */
	private String app_id;

	/**
	 * 小程序 私钥
	 */
	private String app_private_key;

	/**
	 * 小程序 公钥
	 */
	private String app_public_key;

	/**
	 * 支付宝 小程序 公钥
	 */
	private String alipay_public_key;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getNotifyUrl() {
		return notifyUrl;
	}

	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getApp_id() {
		return app_id;
	}

	public void setApp_id(String app_id) {
		this.app_id = app_id;
	}

	public String getApp_private_key() {
		return app_private_key;
	}

	public void setApp_private_key(String app_private_key) {
		this.app_private_key = app_private_key;
	}

	public String getApp_public_key() {
		return app_public_key;
	}

	public void setApp_public_key(String app_public_key) {
		this.app_public_key = app_public_key;
	}

	public String getAlipay_public_key() {
		return alipay_public_key;
	}

	public void setAlipay_public_key(String alipay_public_key) {
		this.alipay_public_key = alipay_public_key;
	}
	
	

}